package com.axjy.his.test;

import com.axjy.his.controller.vo.Node;
import com.axjy.his.pojo.User;
import com.axjy.his.service.PermissionService;
import com.axjy.his.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.stereotype.Service;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by lenovo on 2017/10/27.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext.xml")
public class test {

    @Resource
    private PermissionService permissionService;
    @Test
    public void test(){

        List<Node> nodes = permissionService.searchNodes4Tree(6);
        System.out.println(nodes.size());

    }


}
